package com.skynet.backend.auth.sys.service;

import com.skynet.backend.auth.sys.entity.SysMenuEntity;

import java.util.List;

public interface SysMenuService {

    /**
     * 获取用户菜单列表
     * @param userId 用户ID
     * @return
     */
    List<SysMenuEntity> getUserMenuList(Long userId);

    /**
     * 根据父节点获取已知菜单节点的子菜单
     * @param parentId 父节点ID
     * @param menuIdList 默认菜单ID集合
     * @return
     */
    List<SysMenuEntity> getMenuListByParentId(Long parentId, List<Long> menuIdList);


    /**
     * 根据父节点获取子菜单
     * @param parentId 父节点ID
     * @return
     */
    List<SysMenuEntity> getMenuListByParentId(Long parentId);

}
